package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.common.util.Principals;
import com.yuyou.fn.educational.entity.AttendClassRecord;
import com.yuyou.fn.educational.entity.ClassLecture;
import com.yuyou.fn.educational.entity.ShiftClassRecord;

import java.util.List;

/**
 *
 * ShiftClassRecord 表数据服务层接口
 *
 */
public interface IShiftClassRecordService extends ISuperService<ShiftClassRecord,Long> {

    List<ShiftClassRecord> findShiftClassRecordByFrom(List<Long> fromAttendClassRecordIds );

    void saveShiftClass(Long fromAttendClassRecordId, Long destClassLectureId,String remark, Principals.Principal principal);

    void saveShiftClass(AttendClassRecord fromAttendClassRecord, ClassLecture destClassLecture , String remark, Principals.Principal principal);

    void checkCanShift(Long classId,Long studentId);

    void cancelShiftClass(Long shiftClassRecordId);

    Long countByStudentIdClassId(Long studentId,Long classId);

    Long countByStudentIdDestLectureId(Long studentId,Long toAttendClassRecordId);

    Long countByFromId(Long fromAttendClassRecordId);
}